<template>
	<view class="content">
		<u-navbar
			          title="搜索"
			          :autoBack="true"
			      >
			      </u-navbar>
		<view class="search">
			<u-search :showAction="false" actionText="搜索" :actionStyle="actionStyles" placeholder="搜索医院、科室、医生、疾病"
				v-model="keyword" :animation="false" :clearabled="true" :disabled="true" @click="goSearch"
				bgColor="#fff"></u-search>
		</view>
		<view class="empty">
			<u-empty mode="data" iconSize="80" textSize="18" :icon="emptyList" text="暂无搜索结果"></u-empty>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				emptyList: require('@/static/icons/empty_list.png'), //空列表
				keyword:''
			};
		},
		methods:{
			goSearch() {
				// uni.navigateTo({
				// 	url: '/pages/sousuo/index'
				// });
				uni.navigateBack({
					delta: 1
				});
			},
		},
		onShow() {
			// my.setNavigationBar({
			// 	title: '河南省预约挂号',
			// })
			this.keyword = this.$store.state.doc.keyWord.value
		}
	}
</script>

<style lang="scss">
	.content {
		box-sizing: border-box;
		background-color: #F5F6F8;
		height: 100vh;
		padding-top: 180rpx;
		.search {
			padding-left: 22rpx;
			padding-top: 30rpx;
			padding-right: 24rpx;
		}
		.empty {
			height: 70vh;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>